package com.ruoyi.project.price.service;

import java.math.BigDecimal;
import java.util.List;
import com.ruoyi.project.price.domain.BinsAccountTrace;

/**
 * 账户流水Service接口
 * 
 * @author administrator
 * @date 2025-04-03
 */
public interface IBinsAccountTraceService 
{
    /**
     * 查询账户流水
     * 
     * @param traceSn 账户流水主键
     * @return 账户流水
     */
    public BinsAccountTrace selectBinsAccountTraceByTraceSn(String traceSn);

    /**
     * 查询账户流水列表
     * 
     * @param binsAccountTrace 账户流水
     * @return 账户流水集合
     */
    public List<BinsAccountTrace> selectBinsAccountTraceList(BinsAccountTrace binsAccountTrace);
    BinsAccountTrace selectBinsAccountTraceSUM(BinsAccountTrace binsAccountTrace);
    /**
     * 新增账户流水
     * 
     * @param binsAccountTrace 账户流水
     * @return 结果
     */
    public int insertBinsAccountTrace(BinsAccountTrace binsAccountTrace);

    /**
     * 修改账户流水
     * 
     * @param binsAccountTrace 账户流水
     * @return 结果
     */
    public int updateBinsAccountTrace(BinsAccountTrace binsAccountTrace);

    /**
     * 批量删除账户流水
     * 
     * @param traceSns 需要删除的账户流水主键集合
     * @return 结果
     */
    public int deleteBinsAccountTraceByTraceSns(String[] traceSns);

    /**
     * 删除账户流水信息
     * 
     * @param traceSn 账户流水主键
     * @return 结果
     */
    public int deleteBinsAccountTraceByTraceSn(String traceSn);

    /**
     *
     * @param userId
     * @param orderPrice
     * @param paySource 0 订单结算 1 用户提现 2 用户充值
     * @return
     */
    BinsAccountTrace getAccountTrace2Pay(String userId, BigDecimal orderPrice, String paySource);
}
